<template>
	<view>
		<doctor-register v-if="pageName === '2'"></doctor-register>
		<user-register v-else></user-register>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				pageName: ""
			}
		},
		components:{
			doctorRegister: resolve => {require(['./components/doctor-register.vue'], resolve)},
			userRegister: resolve => {require(['./components/user-register.vue'], resolve)},
		},
		onLoad(option) {
				this.pageName = option.pageName
				console.log(this.pageName, 99)
		}
	}
</script>

<style>
</style>
